//
//(C) Copyright 2011 HongKong Airline.,Ltd. 
//
/**
 * buycarDao
 *
 * 项目名称:代购系统
 *
 * @author Mengxiangliang
 *
 * 功能描述:
 * 
 * 历史版本:2013-01-04 v1.0.0 Mengxiangliang  创建:
 * 
 */
 
package com.gamutsoft.amb.buycar.dao;

import java.util.List;
import java.util.Map;

import com.gamutsoft.amb.buycar.model.Buycar;
import com.gamutsoft.amb.common.bean.QueryExample;
import com.gamutsoft.amb.common.dao.IGenericDao;
import com.gamutsoft.amb.common.exception.BusinessException;


public interface IBuycarDao extends IGenericDao<Buycar,Long> {
	/**
	 * 根据条件查询记录
	 * @author Mengxiangliang
	 * @param  QueryExample
	 * @return List<Map>
	 * @throws BusinessException
	 */
	public List<Map> searchBuycarList(QueryExample qe) throws BusinessException ;

	/**
	 * 根据ID查询记录
	 * @author Mengxiangliang
	 * @param id
	 * @return
	 * @throws BusinessException
	 */
	public Buycar searchBuycarById(Long id) throws BusinessException ;

	/**
	 * 删除记录
	 * @author Mengxiangliang
	 * @param id
	 * @throws BusinessException
	 */
	public void deleteBuycarById(Long id) throws BusinessException ; 
	
	/**
	 * 获取购物车商品
	 */
	public List<Map> searchGoodByUserId(Buycar domain) throws BusinessException;

}
